package edu.sysu.cshare.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import edu.sysu.cshare.DAO.MessageDAO;
import edu.sysu.cshare.model.Message;

@Service
public class MessageService {

	private MessageDAO messageDAO;
	
	@Resource
	public void setMessageDAO(MessageDAO messageDAO) {
		this.messageDAO = messageDAO;
	}

	public List<Message> loadAll() {
		return messageDAO.loadAll();
	}

}
